package com.teacher.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.punishment.PunishmentGetDto;
import com.teacher.pojo.entity.Punishment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.teacher.pojo.vo.punishment.PunishmentGetVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 违纪处分 服务类
 * </p>
 *
 * @author zfm
 * @since 2021-08-01
 */
public interface IPunishmentService extends IService<Punishment> {

    /**
     * 查询违纪处分
     *
     * @param dto
     * @return
     */
    CommonResult<IPage<PunishmentGetVo>> getPage(PunishmentGetDto dto);

    /**
     * 导入违纪处分
     *
     * @param file
     * @return
     */
    CommonResult<String> upload(MultipartFile file);
}
